package com.yiyuan.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author kappy
 * @since 2021-05-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Holiday对象", description="")
public class Holiday implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "请假人")
    @TableField("employeeName")
    private String employeeName;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "部门id")
    @TableField("departmenId")
    private Long departmenId;

    @ApiModelProperty(value = "出生日期")
    @TableField("birthDate")
    private LocalDate birthDate;

    @ApiModelProperty(value = "开始请假时间")
    @TableField("leaveTime")
    private LocalDateTime leaveTime;

    @ApiModelProperty(value = "截止请假时间")
    @TableField("falseDeadline")
    private LocalDateTime falseDeadline;

    @ApiModelProperty(value = "请假类别id")
    @TableField("leaveTypeId")
    private Long leaveTypeId;

    @ApiModelProperty(value = "请假事由")
    private String reason;

    @ApiModelProperty(value = "被请假人")
    @TableField("leavePeopleName")
    private String leavePeopleName;

    @ApiModelProperty(value = "审批人")
    @TableField("approvalName")
    private String approvalName;

    @ApiModelProperty(value = "审批结果(0:同意，1：不同意)")
    @TableField("approvalResult")
    private Integer approvalResult;

    @ApiModelProperty(value = "审批时间")
    @TableField("reviewedDate")
    private LocalDateTime reviewedDate;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记（0：未删除，1：已删除）")
    @TableField("isDeleted")
    private Integer isDeleted;


}
